package com.ishanggang.controller;

import com.ishanggang.service.IShangGangMatchJddjStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 爱上岗门店匹配到家门店业务逻辑
 */
@RestController
@RequestMapping("/isg")
public class IShangGangShopMatchController {

    @Autowired
    private IShangGangMatchJddjStoreService iShangGangMatchJddjStoreService;

    @RequestMapping(value = {"/updateIsgShopLongLat"})
    String updateShopLongLat(){
        this.iShangGangMatchJddjStoreService.updateShopLongLat();
        return "refresh all success!";
    }

    /**
     * 将爱上岗门店与到家门店进行匹配
     * @return
     */
    @RequestMapping(value = {"/buildIShangGangShopMatchJDDJStoreAll"})
    String buildAllQueChaoJDDJStoreId() {
        this.iShangGangMatchJddjStoreService.buildIShangGangShopMatchJDDJStoreAll();
        return "build all success!";
    }
}
